package com.aspose.cells;

public class SmartTagPropertyCollection extends CollectionBase {
   public SmartTagProperty get(int index) {
      return (SmartTagProperty)this.a.get(index);
   }

   public SmartTagProperty get(String name) {
      for(int var2 = 0; var2 < this.getCount(); ++var2) {
         SmartTagProperty var3 = (SmartTagProperty)this.a.get(var2);
         if (com.aspose.cells.b.a.zv.a(var3.getName(), name, true) == 0) {
            return var3;
         }
      }

      return null;
   }

   public int add(String name, String value) {
      for(int var3 = 0; var3 < this.getCount(); ++var3) {
         SmartTagProperty var4 = (SmartTagProperty)this.a.get(var3);
         if (com.aspose.cells.b.a.zv.a(var4.getName(), name, true) == 0) {
            var4.setValue(value);
            return var3;
         }
      }

      SmartTagProperty var5 = new SmartTagProperty(name, value);
      com.aspose.cells.b.a.a.ze.a(this.a, (Object)var5);
      return this.getCount() - 1;
   }
}
